package com.kly;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}
        , scanBasePackages = "com.kly")
@ImportResource({
        "classpath*:app-redis.xml",
        "classpath:dubbo-provider.xml",
        "classpath:dubbo-consumer.xml",
        "classpath:spring-datasource.xml"
})
@ComponentScan(basePackages = {
        "com.kly",
        "com.fqgj.common"
})
@NacosPropertySource(dataId = "sc-order", autoRefreshed = true)
@EnableScheduling
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class);
    }
}
